using System;
namespace AppToolKit.Core.Context
{
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
	public class AutoWiringAttribute : Attribute
	{
		public ContextScope Scope
		{
			get;
			set;
		}
		public WiringMethod Method
		{
			get;
			set;
		}
		public string Name
		{
			get;
			set;
		}
		public AutoWiringAttribute()
		{
			this.Method = WiringMethod.ByType;
			this.Scope = ContextScope.Application;
		}
		public AutoWiringAttribute(string name) : this()
		{
			this.Name = name;
		}
	}
}
